#!/bin/bash

# check mode light
mute=`cat ~/.sway/light/mute 2> /dev/null`

if [[ "1" == $mute ]] ; then
  # set mode in light to unmute
  echo 0 > ~/.sway/light/mute

  # get from save
  # sis-light = `cat ~/.sway/light/save`
  # sis-light set from ~/.sway/light/save
  sis-light load ~/.sway/light/save
else
  # set mode in light to mute
  echo 1 > ~/.sway/light/mute
  # save
  # echo `sis-light get` > ~/.sway/light/save
  # sis-light get in ~/.sway/light/save
  sis-light save ~/.sway/light/save

  # set light 0
  sis-light off
  
fi

# print light
$SIS_SH/sis-light get
